import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/vue/Home'
import Login from '@/vue/Login'
import Registered from '@/vue/Registered'
import User from '@/vue/User'
import UserManage from '@/vue/UserManage'
import UserMessage from '@/components/UserMessage'
import Character from '@/components/Character'
import List from '@/components/List'
import Permission from '@/components/Permission'
import Userlogin from '@/components/Userlogin'
import Useroperating from '@/components/Useroperating'
Vue.use(Router)

export default new Router({
//	mode: 'history',
	routes: [{
			path: '/',
			component: Home
		},
		{
			path: '/login',
			component: Login
		},
		{
			path: '/registered',
			component: Registered
		},
		{
			path: '/vuser',
			component: User
		},
		{
			path: '/vusermanage',
			component: UserManage,
			children: [{
					path: 'pusermessage',
					component: UserMessage //用户管理
				},
				{
					path: 'pcharacter',
					component: Character //角色管理
				},
				{
					path: 'puserpermission',
					component: Permission //权限管理
				},
				{
					path: 'puserlist',
					component: List //管理员列表
				},
				{
					path: 'puserlogin',
					component: Userlogin //用户登录日志
				},
				{
					path: 'puseroperating',
					component: Useroperating //用户操作日志
				},

			]
		}
	]
})